package com.zmzncs.shop.module.shop.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zmzncs.shop.module.shop.pojo.shopinfo.ShopInfo;
import com.zmzncs.shop.module.shop.pojo.shopinfo.ShopInfoDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商户-信息 Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2021-05-18
 */
@Repository
@Mapper
public interface ShopInfoMapper extends BaseMapper<ShopInfo> {

      /** 分页 */
      IPage<ShopInfoDTO> list(Page page);

      /** 详情 */
      ShopInfoDTO getById(Long id);

      /**查询用户管理的所有商户信息*/
      List<ShopInfoDTO> getByManageId(Long manageId);

}
